import time
from BeautifulReport import BeautifulReport
import unittest
#向测试套件中添加测试用例
suite = unittest.defaultTestLoader.discover("cases","case*.py")
now = time.strftime("%Y%m%d%H%M%S")
report_name = "rrz_st_{}.html".format(now)
runner = BeautifulReport(suite)
#执行用例
runner.report(description="这是我使用beautifulreport运行的",
              filename = report_name,
              report_dir=r"./report")